package com.basin.micro.admin.module.department.service;

import com.basin.micro.admin.module.department.pojo.entity.DepartmentEntity;
import com.basin.micro.admin.module.department.pojo.vo.DepartLevelInfoVO;
import com.basin.micro.admin.module.department.pojo.vo.DepartTreeVO;

import java.util.List;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
public interface DepartmentService {

    /**
     * 根据编码查询部门信息
     *
     * @param code code
     * @return DepartmentEntity
     */
    DepartmentEntity getByCode(String code);

    /**
     * 获取组织树
     *
     * @return 树集合
     */
    List<DepartTreeVO> getDepartmentTree();

    /**
     * 获取部门等级信息
     *
     * @return 部门等级信息
     */
    List<DepartLevelInfoVO> getDepartmentLevelInfo();
}
